//
//  ViewController.m
//  扫描二维码
//
//  Created by JS1-ZWN on 16/4/8.
//  Copyright © 2016年 JS1-ZWN. All rights reserved.
//

#import "ViewController.h"
#import "NZScanViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)btnClick:(id)sender {
    
    //创建扫描控制器
    NZScanViewController *scan = [[NZScanViewController alloc] init];
    
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:scan];
    
    [self presentViewController:nav animated:YES completion:NULL];
}



@end
